<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习</title>
    <link rel="stylesheet" href="./index.css">
</head>
<body>
    <div class="container">
        <div id="banner"></div>

        <div class="content">
            <div class="left"></div>
            <div class="right"></div>
        </div>
    </div>

    <script>
        function adapter(){
            document.documentElement.style.fontSize = document.documentElement.clientWidth / 10 + 'px';
        }

        adapter();

        window.onresize = adapter;

    </script>
</body>
</html>